home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_20_1987_Transactor_Publishing.d64
/
copy prg 128
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
482b
|
15 lines
100 rem program file copier 128 tim sweeney
110 poke 58,5 :rem reserve space in bank 1
120 clr
130 print"prg file copier"
140 print"insert master disk, press key": get(NULL) a$
150 input"file name";fl$: (NULL)
160 (NULL) (fl$),b1
170 sa=peek(172)+peek(173)*256 :rem get starting address
180 ea=peek(174)+peek(175)*256 :rem get ending address
190 print"insert target disk, press key": get(NULL) a$
200 (NULL): (NULL) (fl$),b1,p(sa) to p(ea)
210 print"copy completed. another? y";: input"[157][157][157]";a$
220 if a$="y" then 120
230 poke 58,255: clr :rem restore bank 1